package com.gzx.spring.db.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.vo.TransPojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 风控运行结果
 */
@Getter
@Setter
@TableName("risk_rule_result")
public class RiskRuleResult implements Serializable, TransPojo {

	private static final long serialVersionUID = 1L;

	@TableId
	@Schema(description = "主键")
	private String id;

	@Schema(description = "订单编号")
	private String ordercode;

	@Schema(description = "姓名")
	private String name;

	@Schema(description = "身份证号")
	private String idCard;

	@Schema(description = "身份证截止有效期")
	private String idLastdate;

	@Schema(description = "手机号")
	private String phone;

	@Schema(description = "性别")
	private String sex;

	@Schema(description = "执行结果：true通过，false失败")
	private String ruleResult;

	@Schema(description = "拒绝规则")
	private String rejectRule;

	@Schema(description = "拒绝原因")
	private String rejectMsg;

	@Schema(description = "预收期数")
	private Integer yushouCount;

    @Schema(description = "完成风控节点（1-RISK_ONE风控一阶段、2-RISK_TWO风控二阶段征信）")
    private Integer riskNode;

	@Schema(description = "信审结果")
	private String reviewResult;

	@Schema(description = "信审说明")
	private String reviewNote;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createdTime;

}
